package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.QuickHelpMapper;
import com.ruoyi.sj.domain.QuickHelp;
import com.ruoyi.sj.service.IQuickHelpService;
import com.ruoyi.common.support.Convert;

/**
 * 帮助详情 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2018-11-30
 */
@Service
public class QuickHelpServiceImpl implements IQuickHelpService 
{
	@Autowired
	private QuickHelpMapper quickHelpMapper;

	/**
     * 查询帮助详情信息
     * 
     * @param id 帮助详情ID
     * @return 帮助详情信息
     */
    @Override
	public QuickHelp selectQuickHelpById(Long id)
	{
	    return quickHelpMapper.selectQuickHelpById(id);
	}
	
	/**
     * 查询帮助详情列表
     * 
     * @param quickHelp 帮助详情信息
     * @return 帮助详情集合
     */
	@Override
	public List<QuickHelp> selectQuickHelpList(QuickHelp quickHelp)
	{
	    return quickHelpMapper.selectQuickHelpList(quickHelp);
	}
	
    /**
     * 新增帮助详情
     * 
     * @param quickHelp 帮助详情信息
     * @return 结果
     */
	@Override
	public int insertQuickHelp(QuickHelp quickHelp)
	{
	    return quickHelpMapper.insertQuickHelp(quickHelp);
	}
	
	/**
     * 修改帮助详情
     * 
     * @param quickHelp 帮助详情信息
     * @return 结果
     */
	@Override
	public int updateQuickHelp(QuickHelp quickHelp)
	{
	    return quickHelpMapper.updateQuickHelp(quickHelp);
	}

	/**
     * 删除帮助详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteQuickHelpByIds(String ids)
	{
		return quickHelpMapper.deleteQuickHelpByIds(Convert.toStrArray(ids));
	}
	
}
